10. Create Database with SQLiteOpenHelper

Create Database With SQLiteOpenHelper

Question:

Start Quiz:

Solution:

INSTRUCTOR NOTE:

CREATE TABLE pets (_id INTEGER, name TEXT, breed TEXT, gender INTEGER, weight INTEGER);

Replace the contents of the CatalogActivity.java file with this updated code which includes a new displayDatabaseInfo() helper method


These are the changes needed to complete the quiz.

This is the state of the code after completing the quiz.